package com.atguigu.starter.atuguiguspringbootautoconfiguraturer;

/**
 * @Author Gene
 * @Date 2020/8/22 9:16
 * @Version 1.0
 */
public class HelloService {

    HelloProperties helloProperties;

    public HelloProperties getHelloProperties() {
        return helloProperties;
    }

    public void setHelloProperties(HelloProperties helloProperties) {
        this.helloProperties = helloProperties;
    }

    public String hello(String name){
        return helloProperties.getPrefix()+"-"+name+"-"+helloProperties.getSuffix();
    }

}
